use askama::Template;

use std::fs;
use std::path::Path;

fn main(){

let code = askama_demo::generate_cpp_model().unwrap();
    
    // 写入文件
    let path = Path::new("generated").join("tmp").join("UserModel.hpp");
    fs::create_dir_all(path.parent().unwrap()).unwrap();
    fs::write(path, code).unwrap();


}

